package cn.ctodb.mall.config.service;

import cn.ctodb.mall.config.service.dto.ConfigDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * Service Interface for managing Config.
 */
public interface ConfigService {

    /**
     * Save a config.
     *
     * @param configDTO the entity to save
     * @return the persisted entity
     */
    ConfigDTO save(ConfigDTO configDTO);

    /**
     *  Get all the configs.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<ConfigDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" config.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    ConfigDTO findOne(String id);

    /**
     *  Delete the "id" config.
     *
     *  @param id the id of the entity
     */
    void delete(String id);

    String getConf(String type ,String code);
}
